package com.jinzihan.dao;

import com.jinzihan.entity.Classroom;

import java.util.List;

public interface ClassroomDao {
    /**
     * 添加新的课室信息
     * @param classroom
     * @return
     */
    public int saveClassroom(Classroom classroom);

    /**
     * 修改课室的状态
     * @param status
     */
    public int changeClassroomStatus(int id,Integer status);

    /**
     * 查询所有的课室信息
     */
    public List<Classroom> queryAllClassrooms();

    /**
     * 更新课室的信息
     * @param classroom
     */
    public int updateClassroom(Classroom classroom);

    /**
     * 通过课室的id查询课室
     * @param id
     * @return 课室对象
     */
    public Classroom queryClassroomById(int id);

    /**
     * 查询课室的总数
     * @return
     */
    public int queryForClassroomCount();

    public int deleteClassroomById(int id);

    public List<Classroom> queryForPageItems(int begin,int pageSize);
}
